﻿/*----------------------------------------------------------------
// Copyright (C) 2011 周士祎
// 版权所有。 
//
// 文件名：ReportsInfo
// 文件功能描述：报表实体 负责读取报表数据
//
// 
// 创建标识：2012-01-03 周士祎
//
// 修改标识：
// 修改描述：
//
//
//----------------------------------------------------------------*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using DAO.WaiGaoQiao;

namespace Model.WaiGaoQiao
{
    public class ReportsInfo
    {
        private DataAccessReprot Dareport;
        public ReportsInfo()
        {
            Dareport = new DataAccessReprot();
        }
        /// <summary>
        /// 原材料验收单
        /// </summary>
        /// <returns></returns>
        public DataSet GetMaterialInspection(string dt, int gid, int pagesize, int startindex)
        {
            return Dareport.GetMaterialInspection(dt,gid,pagesize,startindex);
        }
        public int GetMaterialInspectionCount(string dt, int gid)
        {
            return Dareport.GetMaterialInspectionCount(dt, gid);
        }
        /// <summary>
        /// 二食堂荤菜、蔬菜、鱼
        /// </summary>
        /// <param name="yy"></param>
        /// <param name="mm"></param>
        /// <param name="pagesize"></param>
        /// <param name="startindex"></param>
        /// <returns></returns>
        public DataSet GetCanteenNonstapleFood(int yy, int mm,int shtang, int pagesize, int startindex)
        {
            return Dareport.GetCanteenNonstapleFood(yy, mm, shtang,pagesize, startindex);
        }
        public int GetCanteenNonstapleFoodCount(int yy, int mm, int shtang)
        {
            return Dareport.GetCanteenNonstapleFoodCount(yy, mm, shtang);
        }

        public DataSet GetCostAccount(int gid, string dt)
        {
            return Dareport.GetCostAccount(gid, dt);
        }

        /// <summary>
        /// 餐饮部原料统计表-第一食堂
        /// </summary>
        /// <param name="yy"></param>
        /// <param name="mm"></param>
        /// <param name="st"></param>
        /// <param name="pagesize"></param>
        /// <param name="startindex"></param>
        /// <returns></returns>
        public DataSet GetProc_RawMaterialsAndStatistics(int yy, int mm, int st, int pagesize, int startindex)
        {
            return Dareport.GetProc_RawMaterialsAndStatistics(yy, mm, st, pagesize, startindex);            
        }
        /// <summary>
        /// 餐饮部原料统计表-第一食堂 数量
        /// </summary>
        /// <param name="yy"></param>
        /// <param name="mm"></param>
        /// <param name="st"></param>
        /// <param name="pagesize"></param>
        /// <param name="startindex"></param>
        /// <returns></returns>
        public int GetProc_RawMaterialsAndStatisticsCount(int yy, int mm, int st)
        {
            return Dareport.GetProc_RawMaterialsAndStatisticsCount(yy, mm, st);
        }

    }
}
